package com.movitech.mobile.cz.base.supplier.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.movitech.mobile.cz.base.common.util.PageCode;
import com.movitech.mobile.cz.base.supplier.bizvo.OverAllConfirmHistoryRequestVO;
import com.movitech.mobile.cz.base.supplier.bizvo.PurchasePlanConfirmHistoryRequestVO;
import com.movitech.mobile.cz.base.supplier.entity.SHistoryComment;
import com.movitech.mobile.cz.base.supplier.entity.ext.ExtSHistoryComment;
import com.movitech.mobile.cz.base.supplier.entity.ext.RankHistoryReqVO;

import java.util.List;

/**
 * <p>
 * 审批历程（审批历史） 服务类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
public interface SHistoryCommentService extends IService<SHistoryComment> {

    boolean saveSHistoryComment(SHistoryComment sHistoryComment);
    
    boolean updateSHistoryCommentById(SHistoryComment sHistoryComment);

    Page<ExtSHistoryComment> findConfirmHistory(Page<ExtSHistoryComment> page, PurchasePlanConfirmHistoryRequestVO vo);
    Page<ExtSHistoryComment> findConfirmHistory(Page<ExtSHistoryComment> page, OverAllConfirmHistoryRequestVO vo);


    List<SHistoryComment> findByModelTypeAndRelatedId(Integer type ,String relateId,String subRelateId);
    List<ExtSHistoryComment> findExtByModelTypeAndRelatedId(Integer type ,String relateId,String subRelateId);

    PageCode historyCommentList(RankHistoryReqVO rankHistoryReqVO);

}
